#ifndef HERO_H
#define HERO_H

#include <QObject>
#include<QPixmap>
#include<QRect>
#include"bullet.h"

class hero : public QObject
{
    Q_OBJECT
public:
    //explicit hero(QObject *parent = nullptr);

    hero(QString a);
    //设置位置
    void setPosition(int x,int y);
    //直升机资源
    QPixmap tom;

    //直升机坐标
    int h_x;
    int h_y;

    //矩形边框
    QRect h_rect;

    //弹匣
    Bullet bullets[30];

    //发射子弹间隔
    int recoder;

    void shoot();

signals:

};

#endif // HERO_H
